
<%@ include file="/common/taglibs.jsp"%>
<!--分页查询共用的页面-->
<%@ include file="/common/common.jsp"%>
<%@ page language="java" pageEncoding="UTF-8"%>

<style>
	select
	{
		width:120px;
	}
</style>

<script>
$().ready(function() {
 $("#entityForm").validate();
 Utility.setComboboxDefaultValue("streamType", '${entity.streamType}');
    Utility.setComboboxDefaultValue("videoDataType", '${entity.videoDataType}');
 Utility.setComboboxDefaultValue("maxAudioListeningTime", '${entity.maxAudioListeningTime}');
 Utility.setComboboxDefaultValue("maxVideoPreviewTime", '${entity.maxVideoPreviewTime}');
    var mesasge = "${message}";
    if(mesasge == "保存成功")
    {
        var videoCloseTime = ${entity.maxVideoPreviewTime};
        var maxAudioListeningTime = ${entity.maxAudioListeningTime};
        window.parent.MyVideoPlayer.getVideoHandler().setVideoCloseTime(videoCloseTime,maxAudioListeningTime);
    }
});
</script>
 <BODY>


<form id="entityForm" name="entityForm"  action="<%=ApplicationPath%>/user/savePreference.action" method="post">
<input type="hidden" name="entityId"
					value="${entity.entityId}"/>
	<div>

		<table  width="100%"  class="TableBlock"">
		<tbody><tr>
						<td colspan="2" style="font-weight: bold; background: #EFEFEF;" height="25">
						 用户配置信息:

						<span class="MessageFromServer">${message}</span>
						</td>
					</tr>

			
			<tr>
				<td align="right">默认视频码流:
				</td>
				<td><select name="streamType" id="streamType">
						<option value="0" selected>主码流</option>
						<option value="1" selected>子码流</option>
					</select>
				</td>
			</tr>
		<tr>
			<td align="right">默认请求音视频:
			</td>
			<td><select name="videoDataType" id="videoDataType">
				<option value="0" selected>音视频</option>
				<option value="1" selected>视频</option>
				</select>
			</td>
		</tr>

		<tr>
			<td align="right">自动关闭视频:</td>
			<td align="left"><select name="maxVideoPreviewTime" id="maxVideoPreviewTime">
				<option value="1">1分钟后关闭</option>
				<option value="2">2分钟后关闭</option>
				<option value="3">3分钟后关闭</option>
				<option value="4">4分钟后关闭</option>
				<option value="5">5分钟后关闭</option>
				<option value="6">6分钟后关闭</option>
				<option value="7">7分钟后关闭</option>
				<option value="8">8分钟后关闭</option>
				<option value="9">9分钟后关闭</option>
				<option value="10">10分钟后关闭</option>
			</select></td>
		</tr>
		<tr>
			<td align="right">自动关闭监听:</td>
			<td align="left"><select name="maxAudioListeningTime" id="maxAudioListeningTime">
				<option value="1">1分钟后关闭</option>
				<option value="2">2分钟后关闭</option>
				<option value="3">3分钟后关闭</option>
				<option value="4">4分钟后关闭</option>
				<option value="5">5分钟后关闭</option>
				<option value="6">6分钟后关闭</option>
				<option value="7">7分钟后关闭</option>
				<option value="8">8分钟后关闭</option>
				<option value="9">9分钟后关闭</option>
				<option value="10">10分钟后关闭</option>
			</select></td>
		</tr>

		
			<tr>
						<td colspan="2" align="center">
								<input type="submit" class="button gray medium" value="保存">
						</td>
					</tr>


</table>